﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace project_phoenix.source
{
    public class PotionBehavior : IObtainableBehavior
    {
        /// <summary>
        /// Value of the Obtainable's effect
        /// 
        /// Potion: amt to restore
        /// Soul: index into master soul list
        /// Money: amt of money to award
        /// Food: amt to restore
        /// </summary>
        protected int mValue;

        public PotionBehavior(int value)
        {
            mValue = value;
        }

        // Forced overrides
        public void Use(Entity user)
        {
            user.ModHealth(mValue);
            Console.WriteLine("Potion Used!");
        }

        // Forced overrides
        public void PickUp(Entity pickerupper)
        {
            // Todo: Give item to the pickerupper *giggle*
            Console.WriteLine("Potion Picked up!");
        }
    }
}
